package com.moran.beetlsql.learn.service;

import com.moran.beetlsql.common.ResultVo;
import com.moran.beetlsql.learn.dao.WebsitesDao;
import com.moran.beetlsql.learn.mapper.test.WebsitesMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description
 * @Author wnf
 * @Date 2025-07-10
 */
@Service
public class WebsitesService {

    @Autowired
    private WebsitesMapper websitesMapper;
    @Autowired
    private WebsitesDao websitesDao;

    public ResultVo queryWebsitesList() {
        return ResultVo.success("success", websitesDao.queryWebsitesList());
    }

    public ResultVo queryWebsitesLogList() {
        return ResultVo.success(websitesMapper.queryWebsitesLogList());
    }
}
